﻿<UserControl x:Class="GiveAQuiz.QuizManager.Views.QuizTakerIntroView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">

  <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"
                     MinHeight="39" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <TextBlock TextWrapping="Wrap"
               Text="You are about to take a quiz using GiveAQuiz.com.  The test may be timed and cannot be paused or restarted.  Please press &quot;Start&quot; when ready..."
               FontStyle="Italic"
               FontSize="14.667" />
    <Grid Grid.Row="1"
          Margin="50,25,50,0">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"
                       MinHeight="17" />
        <RowDefinition Height="Auto"
                       MinHeight="19" />
        <RowDefinition Height="Auto"
                       MinHeight="20" />
        <RowDefinition Height="Auto"
                       MinHeight="20" />
        <RowDefinition />
        <RowDefinition Height="Auto"
                       MinHeight="19" />
      </Grid.RowDefinitions>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="0.27*" />
        <ColumnDefinition Width="0.73*" />
      </Grid.ColumnDefinitions>

      <StackPanel Grid.Column="1"
                  HorizontalAlignment="Right"
                  Orientation="Horizontal"
                  Grid.Row="5"
                  d:LayoutOverrides="Height">
        <Button Content="Cancel"
                Command="{Binding CancelCommand}"
                d:LayoutOverrides="Width"
                Margin="0,0,2,0" />
        <Button Content="Start"
                Command="{Binding StartCommand}"
                Margin="2,0,0,0" />

      </StackPanel>
      <TextBlock TextWrapping="Wrap"
                 Text="Name"
                 d:LayoutOverrides="Width, Height"
                 FontWeight="Bold" />
      <TextBlock TextWrapping="Wrap"
                 Text="{Binding Quiz.Name}"
                 d:LayoutOverrides="Width"
                 FontStyle="Italic"
                 Grid.Column="1" />
      <TextBlock TextWrapping="Wrap"
                 Text="Description"
                 d:LayoutOverrides="Width, Height"
                 FontWeight="Bold"
                 Grid.Row="1" />
      <TextBlock TextWrapping="Wrap"
                 Text="{Binding Quiz.QuizDefinition.Description}"
                 d:LayoutOverrides="Width"
                 FontStyle="Italic"
                 Grid.Row="1"
                 Grid.Column="1" />
      <TextBlock TextWrapping="Wrap"
                 Text="#/Questions"
                 FontWeight="Bold"
                 d:LayoutOverrides="Width, Height"
                 Grid.Row="2" />
      <TextBlock TextWrapping="Wrap"
                 Text="{Binding Quiz.QuizDefinition.QuestionDefinitions.Count}"
                 FontStyle="Italic"
                 d:LayoutOverrides="Width"
                 Grid.Row="2"
                 Grid.Column="1" />
      <TextBlock TextWrapping="Wrap"
                 Text="Time Limit"
                 FontWeight="Bold"
                 d:LayoutOverrides="Width, Height"
                 Grid.Row="3" />
      <TextBlock TextWrapping="Wrap"
                 Text="{Binding Quiz.QuizDefinition.TimeLimit}"
                 FontStyle="Italic"
                 d:LayoutOverrides="Width"
                 Grid.Row="3"
                 Grid.Column="1" />

    </Grid>

  </Grid>
</UserControl>
